import useThemeStore from "@/store/themeStore";
import { computed } from "vue";

function useColor() {
    const themeStore = useThemeStore();
    const layoutBackgroundColor = computed(() => { return themeStore.isDark ? '#181818' : '#fafbfc' });

    function initTheme() {
        themeStore.initTheme();
    }

    return {
        layoutBackgroundColor,
        initTheme
    }
}

export default useColor;